<?php
namespace Nawa\MedicalStudy\Followup;
/**
 * Medical Study Followup Object.
 *
 * It represant a study item, meaning a 'module' of study.
 * 
 *
 * @author Xavier VILAIN
 * @package Nawa\MedicalStudy
 *
 * @property int	$followupid		Id of the follwup
 * @property string	$language		Status language (5)
 * @property int	$type			Type of follwup
 * @property string	$label			Label
 * @property bool	$standard		Is a standard type (can't be deleted)
 * @property bool	$active			Is an active type (can be selected)
 */
class Item extends \Fox\Object {
	
	/**
	 * Link to MS Follow up
	 * @var string
	 */
	const LINK_MEDICAL_STUDY_FOLLOWUPS = 'medicalStudyFollowups';
	
	/**
	 * The item is a checkbox type of followup
	 * @var int
	 */
	const TYPE_UNIQUE = 1;
	
	/**
	 * The item is a input type of followup
	 * @var int
	 */
	const TYPE_MULTIPLE = 2;
		
	/**
	 * To standardize the creation/update
	 * @return string label
	 */
	public function label() {
		return $this->label;
	}

}
\Fox\Dao::infos(Item::className(),new \Fox\Object\Info('ms_followup_items', \Fox\Databases::DB_APP));